package maven.jyhs.com.dao;

import maven.jyhs.com.entity.Sea;
import maven.jyhs.com.entity.Search;
import maven.jyhs.com.entity.User;
import maven.jyhs.com.entity.dto.Users;
import org.apache.ibatis.annotations.Param;

import java.sql.SQLException;
import java.util.List;

public interface TranstfeDao {

   void setTranstfeDao(TranstfeDao transtfeDao);

   List<User>  gather();

   boolean update(User user) ;

   long id(int id) throws IllegalAccessException;

   int zadd(User user);

   boolean delete(int id) throws IllegalAccessException;
   int xuogai1(int jq, String skname, String fkname);

   int xuogai2(int jq, String skname, String fkname);


   int chishu() throws SQLException, IllegalAccessException;

   List<Search> getYs(@Param("page") int page, @Param("limit") int limit, @Param("sea") Sea sea) throws SQLException, ClassNotFoundException, IllegalAccessException;

   int  search(Sea sea) throws SQLException, IllegalAccessException;



   int balance(int id)   throws SQLException, IllegalAccessException;

   int add(User user);

   List<Users> getUsers(Users user);

   boolean batchDelete(@Param("ids") List<Integer> ids);

   List<User> getUsersBy() throws SQLException, IllegalAccessException;

   int limit(Users user) throws SQLException, IllegalAccessException;

}
